package com.kb.shop.controller;

import com.kb.order.pojo.ShopInfo;
import com.kb.shop.service.IShopInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("shop")
@ResponseBody
public class ShopInfoController {
    @Autowired
    private IShopInfoService iShopInfoService;
@GetMapping("lookShop")
@ResponseBody
    public ShopInfo LookShop(Integer shopId){
    System.out.println("開始查詢店铺"+shopId);
        ShopInfo shopInfo=iShopInfoService.selectOne(shopId);
    System.out.println(shopInfo);
        return shopInfo;
    }

}
